<?php
namespace App\Common\Cla\Weixin\OfficialAccount\Base;

use App\Common as com;
use App\Common\Cla\Weixin\OfficialAccount as nameAccount;

class OfConfig extends com\Cla\ClaBase {

	public function __construct( private nameAccount\OfConfig $configObj ) {
		parent::__construct();
	}

	/**
	 * @return nameAccount\OfConfig
	 */
	public function getConfigObj(  ):nameAccount\OfConfig {
		return $this->configObj;
	}

	/**
	 * @return \EasyWeChat\MiniProgram\Application
	 */
	public function getEasyObj(  ):\EasyWeChat\OfficialAccount\Application {
		return $this->getConfigObj()->getEasyObj();
	}

	// ===============================
	//
	//
	// 下面为静态方法
	//
	//
	// ===============================

	/**
	 * @param nameAccount\OfConfig $configObj
	 * @return $this
	 */
	public static function makeByConfigObj( nameAccount\OfConfig $configObj ):self {
		return self::make( ...func_get_args() );
	}

}
